from django import forms


class UserForm(forms.Form):
    username = forms.CharField(min_length=2, label='用户名', error_messages={'min_length': '用户名长度不能小于二'})
    password = forms.CharField(min_length=6, label='密码', error_messages={'min_length': '密码长度不能小于六'},
                               widget=forms.PasswordInput)
